<?php

namespace App\Jobs;

use App\Jobs\Job;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Log;


class demoJob extends Job implements ShouldQueue
{
    use InteractsWithQueue, SerializesModels;

    private $a;
    private $b;

    /**
     * Create a new job instance.
     *
     */
    public function __construct($a,$b)
    {
        $this->a = $a;
        $this->b = $b;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        sleep(5);
        Log::useDailyFiles(storage_path() . '/logs/job-demo.log');
        info('demojob');
        Log::info("$this->a, $this->b ".REQUEST_MS);
    }
}
